package com.bdd.mapper;

import com.bdd.entity.Inventory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author huanghaining
 * @date 2022/3/18
 */
@Repository
public interface InventoryDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Inventory record);

    int insertSelective(Inventory record);

    Inventory selectByPrimaryKey(Integer id);

    Inventory selectByCothingId(@Param("clothingId") Integer clothingId);

    Inventory selectByCothingIdAndSizeId(@Param("clothingId") Integer clothingId,@Param("sizeId") Integer sizeId);

    int updateByPrimaryKeySelective(Inventory record);

    int updateByPrimaryKey(Inventory record);
}